package aug14;

public class BindingTest {
	public static void main(String[] args){
		ParentBindingTest p = new ChildBindingTest();
		ChildBindingTest c = 
				new ChildBindingTest();
		
		System.out.println("p.x = "+p.x);
		p.method();
		System.out.println("c.x = "+c.x);
		c.method();
	}
}

class ParentBindingTest{
	int x = 100;
	void method(){
		System.out.println("Parent Method");
	}
}

class ChildBindingTest extends ParentBindingTest{
	int x = 200;
	void method(){
		System.out.println("Child Method");
	}
}
